package com.shop.shoppingmall.dao;

import com.shop.shoppingmall.entity.ShCustomerService;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * (ShCustomerService)表数据库访问层
 *
 * @author makejava
 * @since 2020-09-29 10:21:18
 */
@Mapper
public interface ShCustomerServiceDao {

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    ShCustomerService queryById(Integer id);


    /**
     * 通过实体作为筛选条件查询
     *
     * @param shCustomerService 实例对象
     * @return 对象列表
     */
    List<ShCustomerService> queryAll(ShCustomerService shCustomerService);

    /**
     * 新增数据
     *
     * @param shCustomerService 实例对象
     * @return 影响行数
     */
    int insert(ShCustomerService shCustomerService);

    /**
     * 修改数据
     *
     * @param shCustomerService 实例对象
     * @return 影响行数
     */
    int update(ShCustomerService shCustomerService);

    /**
     * 通过主键删除数据
     *
     * @param id 主键
     * @return 影响行数
     */
    int deleteById(Integer id);

}